function fetch_object(idname)
{
	if (document.getElementById)
	{
		return document.getElementById(idname);
	}
	else if (document.all)
	{
		return document.all[idname];
	}
	else if (document.layers)
	{
		return document.layers[idname];
	}
	else
	{
		return null;
	}
}

function flip_visibility(idname, force_visibility)
{
	var obj = fetch_object(idname);
	if (!obj)
	{
		return false;
	}

	if (typeof force_visibility != 'undefined')
	{
		obj.style.display = force_visibility;
	}
	else if (obj.style.display == '')
	{
		obj.style.display = 'none';
	}
	else
	{
		obj.style.display = '';
	}

	return true;
}